package com.changhongit.order.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import io.swagger.annotations.ApiModelProperty;

@Entity
@Table
public class MaterialDetailEntity {
	@Id
	@ApiModelProperty(value = "订单头id")
	@Column(name = "po_header_id")
	String poHeaderId;
	@ApiModelProperty(value = "订单行")
	@Column(name = "line_number")
	Integer lineNum;
	@ApiModelProperty(value = "物料编码")
	@Column(name = "item_name")
	String material;
	@ApiModelProperty(value = "单位")
	@Column(name = "unit_meas_lookup_code")
	String unitMeasLookupCode;
	@ApiModelProperty(value = "数量")
	@Column(name = "quantity")
	String quantity;
	@ApiModelProperty(value = "总价含税(减去返利后剩余的含税金额)")
	@Column(name = "amount_tax")
	BigDecimal amountTax;
	@ApiModelProperty(value = "总价不含税")
	@Column(name = "amount")
	BigDecimal amount;

	@ApiModelProperty(value = "订单减去返利后的余额")
	@Column(name = "flye")
	BigDecimal flye;

	@ApiModelProperty(value = "单价含税")
	@Column(name = "unit_price_tax")
	BigDecimal unitPriceTax;
	@ApiModelProperty(value = "单价不含税")
	@Column(name = "unit_price")
	BigDecimal unitPrice;

	@ApiModelProperty(value = "税率")
	@Column(name = "tax_rate")
	String taxRate;
	@ApiModelProperty(value = "厂商PPO")
	@Column(name = "cs_po")
	String csPo;
	@ApiModelProperty(value = "返利池使用金额")
	@Column(name = "fl_use_amount")
	BigDecimal flcje;

	@ApiModelProperty(value = "供应商")
	@Column(name = "vendor_name")
	String vendorName;

	@ApiModelProperty(value = "ou")
	@Column(name = "org_name")
	String ouname;

	@ApiModelProperty(value = "订单号")
	@Column(name = "po_number")
	String poNumber;

	@ApiModelProperty(value = "查询出来所有订单含税金额总和")
	@Transient
	BigDecimal totalAmountTax;

	public String getPoHeaderId() {
		return poHeaderId;
	}

	public void setPoHeaderId(String poHeaderId) {
		this.poHeaderId = poHeaderId;
	}

	public Integer getLineNum() {
		return lineNum;
	}

	public void setLineNum(Integer lineNum) {
		this.lineNum = lineNum;
	}

	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}

	public String getUnitMeasLookupCode() {
		return unitMeasLookupCode;
	}

	public void setUnitMeasLookupCode(String unitMeasLookupCode) {
		this.unitMeasLookupCode = unitMeasLookupCode;
	}

	public String getQuantity() {
		return quantity;
	}

	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}

	public BigDecimal getAmountTax() {
		return amountTax;
	}

	public void setAmountTax(BigDecimal amountTax) {
		this.amountTax = amountTax;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getTaxRate() {
		return taxRate;
	}

	public void setTaxRate(String taxRate) {
		this.taxRate = taxRate;
	}

	public String getCsPo() {
		return csPo;
	}

	public void setCsPo(String csPo) {
		this.csPo = csPo;
	}

	public BigDecimal getFlcje() {
		return flcje;
	}

	public void setFlcje(BigDecimal flcje) {
		this.flcje = flcje;
	}

	public String getVendorName() {
		return vendorName;
	}

	public void setVendorName(String vendorName) {
		this.vendorName = vendorName;
	}

	public String getOuname() {
		return ouname;
	}

	public void setOuname(String ouname) {
		this.ouname = ouname;
	}

	public String getPoNumber() {
		return poNumber;
	}

	public void setPoNumber(String poNumber) {
		this.poNumber = poNumber;
	}

	public BigDecimal getUnitPriceTax() {
		return unitPriceTax;
	}

	public void setUnitPriceTax(BigDecimal unitPriceTax) {
		this.unitPriceTax = unitPriceTax;
	}

	public BigDecimal getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(BigDecimal unitPrice) {
		this.unitPrice = unitPrice;
	}

	public BigDecimal getTotalAmountTax() {
		return totalAmountTax;
	}

	public void setTotalAmountTax(BigDecimal totalAmountTax) {
		this.totalAmountTax = totalAmountTax;
	}

	public BigDecimal getFlye() {
		return flye;
	}

	public void setFlye(BigDecimal flye) {
		this.flye = flye;
	}

}
